package com.bit.cfdi.web.vm.productservices;

import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.Init;
import org.zkoss.bind.annotation.NotifyChange;
import org.zkoss.zk.ui.select.annotation.VariableResolver;


@VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
public class ModalWindowExportProductServiceViewModel {

	private Integer indexTabbox;
	private String textTitle;

	@Init
	public void init()
	{
		indexTabbox = 0;	
		textTitle = "Selecciona la ruta donde se exportarán los datos";
	}
		
	public Integer getIndexTabbox() {
		return indexTabbox;
	}

	public void setIndexTabbox(Integer indexTabbox) {
		this.indexTabbox = indexTabbox;
	}
		
	public String getTextTitle() {
		return textTitle;
	}

	/**/
	@Command
	@NotifyChange({"indexTabbox","textTitle"})
	public void goPagePrevisualizacion()
	{
		indexTabbox = 1;
		textTitle = "Previsualización de la exportación.";
	}
	
	@Command
	@NotifyChange({"indexTabbox","textTitle"})
	public void goPagePath()
	{
		indexTabbox = 0;
		textTitle = "Selecciona la ruta donde se exportarán los datos";
	}	
}
